//
//  NFourIconViewCell.m
//  nncloud
//
//  Created by macfai on 2018/9/18.
//  Copyright © 2018年 youedata. All rights reserved.
//

#import "NFourIconViewCell.h"
#import "UIView+Sizes.h"
@implementation NFourIconViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self makeUI];
//        self.backgroundColor = [UIColor magentaColor];
    }
    return self;
}

-(void)makeUI{
    
    _iconImage  = [[UIImageView alloc] initWithFrame:CGRectMake(0,8,56,56)];
    //_headImageView.center = CGPointMake(self.frame.size.width/2, 0);
    _iconImage.centerX = self.contentView.width/2;
    _iconImage.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:_iconImage];
    
    _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_iconImage.frame)+5, 90, 18)];
    _nameLabel.centerX = self.contentView.width/2;
    _nameLabel.textAlignment = NSTextAlignmentCenter;
    _nameLabel.textColor = kGrayColor;
    _nameLabel.font = kFont14;
    [self.contentView addSubview:_nameLabel];
    
    
}

-(void)configData:(NFourIconModel *)model{
    
//    _nameLabel.text = model.iconName;
//    [_iconImage sd_setImageWithURL:[NSURL URLWithString:model.iconUrl] placeholderImage:nil];
    
    
}


@end
